package com.rundow.driver.virtual.factory;

import com.rundow.common.base.utils.ApplicationContextUtil;
import com.rundow.common.sdk.factory.ServiceContainerFactory;
import com.rundow.common.sdk.service.DriverCommandService;
import com.rundow.common.sdk.service.DriverCustomService;
import com.rundow.common.sdk.service.DriverScheduleService;

public class VirtualFactory implements ServiceContainerFactory {

    @Override
    public  DriverCustomService createDriverCustomService() {
        final DriverCustomService virtualDriverCustomService =(DriverCustomService) ApplicationContextUtil.getBean("virtualDriverCustomService");
        return virtualDriverCustomService;
    }

    @Override
    public DriverCommandService createdriverCommandService() {
        final DriverCommandService virtualDriverCommandService =(DriverCommandService) ApplicationContextUtil.getBean("virtualDriverCommandService");
        return virtualDriverCommandService;
    }

    @Override
    public DriverScheduleService createdriverScheduleService() {
        final DriverScheduleService opcuaDriverScheduleService =(DriverScheduleService) ApplicationContextUtil.getBean("opcuaDriverScheduleService");
        return opcuaDriverScheduleService;
    }
}
